package com.wsjc.manager.entity;

import java.util.Date;

/**
 * 
 * @Description 卫监单位表
 * @ClassName   WjEmployers 
 * @Date        2018年7月22日 下午6:03:23 
 * @Author      liyang 
 *
 */

public class WjEmployers {
	
	/** 主键  */
    private String id;

    /** 秘钥 */
    private String key;

    /** 地址：初始地址在建立下一级管理员时可以修改 */
    private String address;

    /** 单位名称（不可修改） */
    private String name;

    /** 单位联系人（初始为空值） */
    private String contactPerson;

    /** 单位联系电话 */
    private String contactPhone;

    /** 管辖区域（文字性描述） */
    private String scope;

    /** 等级：数值型 1国家级，2省级，3市级，4区级，如果与其他的有冲突可以提出更改 */
    private String grade;

    /** MC计量证书号 */
    private String mcNumber;

    /** 计量证书有效期 */
    private String mcValidityPeriod;

    /** 使用有效期 */
    private Date expireDate;

    public WjEmployers(String id, String key, String address, String name, String contactPerson, String contactPhone, String scope, String grade, String mcNumber, String mcValidityPeriod, Date expireDate) {
        this.id = id;
        this.key = key;
        this.address = address;
        this.name = name;
        this.contactPerson = contactPerson;
        this.contactPhone = contactPhone;
        this.scope = scope;
        this.grade = grade;
        this.mcNumber = mcNumber;
        this.mcValidityPeriod = mcValidityPeriod;
        this.expireDate = expireDate;
    }

    public WjEmployers() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key == null ? null : key.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson == null ? null : contactPerson.trim();
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone == null ? null : contactPhone.trim();
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope == null ? null : scope.trim();
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade == null ? null : grade.trim();
    }

    public String getMcNumber() {
        return mcNumber;
    }

    public void setMcNumber(String mcNumber) {
        this.mcNumber = mcNumber == null ? null : mcNumber.trim();
    }

    public String getMcValidityPeriod() {
        return mcValidityPeriod;
    }

    public void setMcValidityPeriod(String mcValidityPeriod) {
        this.mcValidityPeriod = mcValidityPeriod == null ? null : mcValidityPeriod.trim();
    }

    public Date getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", key=").append(key);
        sb.append(", address=").append(address);
        sb.append(", name=").append(name);
        sb.append(", contactPerson=").append(contactPerson);
        sb.append(", contactPhone=").append(contactPhone);
        sb.append(", scope=").append(scope);
        sb.append(", grade=").append(grade);
        sb.append(", mcNumber=").append(mcNumber);
        sb.append(", mcValidityPeriod=").append(mcValidityPeriod);
        sb.append(", expireDate=").append(expireDate);
        sb.append("]");
        return sb.toString();
    }
}